<?php
	/*
	*	loads a library in the lib folder
	*/
	class Loader {
		function Loader($class) {
			$this->user($class);
		}
		function load($class) {
			if(!file_exists( LIB_PATH."$class.php")) {
				echo "<br>The library [$class] you are using is not available";
				return false;
			}
			else
				require_once(LIB_PATH."$class.php");
			return true;
		}
	}

	class ModelLoader {
		function load($class) {
			
			if(!file_exists(MODELS_PATH . "$class.php")) {
				
				echo "<br>The model [$class] you are using is not available";
				return false;
			}
			else 
				require_once(MODELS_PATH . "$class.php");
			return true;
		}
	}
?>